package com.itcast.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itcast.mapper.MemberMapper;
import com.itcast.pojo.Member;
import com.itcast.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = MemberService.class)
@Transactional
public class MemberServiceimpl implements MemberService {
   @Autowired
   MemberMapper memberMapper;
    @Override
    public Member findMemberBy(String telephone) {

        return memberMapper.findMemberBy(telephone);
    }

    @Override
    public void addMember(Member member) {
        memberMapper.addMember(member);
    }
}
